﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SugarWebApi
{

	public class SugarModule : SugarObject
	{

		#region Constructors

		public SugarModule(
			SugarWebConext context) :
			base(context)
		{

		}

		#endregion

		#region Properties

		public string ModuleName
		{
			get;
			protected internal set;
		}

		#endregion

		#region Methods

		public SugarField[] GetFields()
		{
			return this.Context.GetModuleFields(this.ModuleName).Fields;
		}

		#endregion
	}
}
